# -*- coding:utf-8 -*-
from __future__ import absolute_import, unicode_literals

# 本文件记录可在后台动态配置的一些设置，如需添加其他django设置，请修改settings.py

# 是否开启调试
DEBUG = True

# 允许链接的域名
ALLOWED_HOSTS = ["wenlincms.com", ]

# 启用的主题
WL_THEME = "element"

# 全站缓存时间
CACHE_MIDDLEWARE_SECONDS = 900
# 缓存前缀
CACHE_MIDDLEWARE_KEY_PREFIX = "wenlincms"

# 文件最大上传大小
FILE_UPLOAD_MAX_MEMORY_SIZE = 8388608  # 默认值

# 邮件服务器相关设置
EMAIL_HOST = 'smtp.163.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''

# 邮件发送选项
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER

# 短信服务接口
SM_OPTIONS = {
    'ACCOUNTSID': '',
    'ACCOUNTTOKEN': '',
    'APPID': '',
    'SERVERIP': '',
    'SERVERPORT': 25,
    'SOFTVERSION': ''
}
